package com.niit.service;

import com.niit.pojo.Product;
import com.niit.pojo.ProductView;
import org.springframework.stereotype.Service;

import java.util.List;
public interface ProductService {
    //    分页查询商品
    public List<ProductView> productList();

    public int addProduct(Product product);

    public int deleteProductById(int product_id);

    public int updateProduct(Product product);

    public List<ProductView> selectProduct(String input);
    public Product selectProductById(int id);
    public ProductView selectProductViewById(int id);


}
